FulfillRequestRequest

data class FulfillRequestRequest(requestId: RequestId, responseCode: Int, responseHeaders: List<HeaderEntry>?, binaryResponseHeaders: String?, body: String?, responsePhrase: String?)

Represents request frame that can be used with Fetch#fulfillRequest operation call.

Provides response to the request.

See also

Constructors

FulfillRequestRequest
Link copied to clipboard
fun FulfillRequestRequest(requestId: RequestId, responseCode: Int, responseHeaders: List<HeaderEntry>? = null, binaryResponseHeaders: String? = null, body: String? = null, responsePhrase: String? = null)

Properties

binaryResponseHeaders
Link copied to clipboard
val binaryResponseHeaders: String? = null
Alternative way of specifying response headers as a \0-separated series of name: value pairs.
body
Link copied to clipboard
val body: String? = null
A response body.
requestId
Link copied to clipboard
val requestId: RequestId
An id the client received in requestPaused event.
responseCode
Link copied to clipboard
val responseCode: Int
An HTTP response code.
responseHeaders
Link copied to clipboard
val responseHeaders: List<HeaderEntry>? = null
Response headers.
responsePhrase
Link copied to clipboard
val responsePhrase: String? = null
A textual representation of responseCode.

Sources

jvm source
Link copied to clipboard